package com.itrus.util;

import java.io.ByteArrayOutputStream;

public class Base64
{
  public static byte[] decode(String paramString)
  {
    return org.bouncycastle.util.encoders.Base64.decode(paramString);
  }

  public static byte[] decode(byte[] paramArrayOfByte)
  {
    return org.bouncycastle.util.encoders.Base64.decode(paramArrayOfByte);
  }

  public static String encode(byte[] paramArrayOfByte)
  {
    return encode(paramArrayOfByte, true);
  }

  public static String encode(byte[] paramArrayOfByte, boolean paramBoolean)
  {
    byte[] arrayOfByte = org.bouncycastle.util.encoders.Base64.encode(paramArrayOfByte);
    if (!paramBoolean)
      return new String(arrayOfByte);
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    int i = 0;
    if (i >= arrayOfByte.length)
      return new String(localByteArrayOutputStream.toByteArray());
    if (i + 64 < arrayOfByte.length)
    {
      localByteArrayOutputStream.write(arrayOfByte, i, 64);
      localByteArrayOutputStream.write(10);
    }
    while (true)
    {
      i += 64;
      break;
      localByteArrayOutputStream.write(arrayOfByte, i, arrayOfByte.length - i);
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.util.Base64
 * JD-Core Version:    0.6.2
 */